package com.yunfeisoft.business.dao.impl;

import com.yunfeisoft.business.dao.inter.ElderHealthDao;
import com.yunfeisoft.business.model.ElderHealth;
import com.yunfeisoft.common.base.BaseDaoImpl;
import com.yunfeisoft.common.sql.builder.WhereBuilder;
import com.yunfeisoft.common.utils.Page;
import org.springframework.stereotype.Repository;

import java.util.Map;

/**
 * ClassName: ElderHealthDaoImpl
 * Description: 老人健康体检主表Dao实现
 * Author: Jackie liu
 * Date: 2020-04-04
 */
@Repository
public class ElderHealthDaoImpl extends BaseDaoImpl<ElderHealth, String> implements ElderHealthDao {

    @Override
    public Page<ElderHealth> queryPage(Map<String, Object> params) {
        WhereBuilder wb = new WhereBuilder();
        if (params != null) {
            initPageParam(wb, params);
        }
        return queryPage(wb);
    }
}